import requests


url = "http://127.0.0.1:5000/convert"

payload = {'type': 'wpp', 'path': '/home/cong/Downloads/a.pptx', 'format': 'pdf'}
headers = {
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36 Edg/106.0.1370.47',
    'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, json=payload)

print(response.text)
